package ru.st.selenium;

import java.util.regex.Pattern;
import java.util.concurrent.TimeUnit;

import org.testng.*;
import org.testng.annotations.*;

import static org.junit.Assert.*;
import static org.hamcrest.CoreMatchers.*;

import org.openqa.selenium.*;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.Select;

public class SearchFilm extends ru.st.selenium.pages.TestBase {

//  @Test
//  public void testSearchMovieFail() throws Exception {
//    driver.findElement(By.id("q")).clear();
//    driver.findElement(By.id("q")).sendKeys("no result" + Keys.RETURN);
//
//    WebElement NoMovies = waitWebElement(By.cssSelector(".content"));
//		
//    driver.findElement(By.id("q")).clear();
//    driver.findElement(By.id("q")).sendKeys("" + Keys.RETURN);
//
//    WebElement MoviesList = waitWebElement(By.xpath("//*[@id='results']"));
//  }
//	  
//  @Test
//  public void testSearchMovieOK() throws Exception {
//    driver.findElement(By.id("q")).clear();
//    driver.findElement(By.id("q")).sendKeys("My test film" + Keys.RETURN);
//
//    WebElement SearchMovie = waitWebElement(By.cssSelector(".title"));
//		
//    driver.findElement(By.id("q")).clear();
//    driver.findElement(By.id("q")).sendKeys("" + Keys.RETURN);
//
//    WebElement MoviesList = waitWebElement(By.xpath("//*[@id='results']"));
//  }
}
